package uuid;

import org.junit.jupiter.api.Test;

import java.util.UUID;

/**
 * @Author 郅占伟
 * @ClassName UUIDTest
 * @Description TODO
 * @Date 2023年12月04日
 * @Version: 1.0
 */
public class UUIDTest {
    /**
     * @Description 获取uuid
     * @Date 10:06 2023/12/4
    */
    @Test
    public void getUuid(){
        String uuidString = UUID.randomUUID().toString();
        System.out.println(uuidString);
    }

    /**
     * @Description uuid去除 -
     * @Date 10:06 2023/12/4
    */
    @Test
    public void uuidToString(){
        String uuidString = UUID.randomUUID().toString().replace("-","");
        System.out.println(uuidString);
    }
}
